/**
 * Project Name:jiuselu-parent
 * File Name:ConfigController.java
 * Package Name:com.fxp.project.jiuselu.web.business.v1.controller.common
 * Date:2021年11月01日 10:34
 * Copyright (c) 2021, Kai.Wang All Rights Reserved.
 */
package com.fxp.project.jiuselu.web.business.v1.controller.common;

import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.common.service.IJslBackendConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:ConfigController<br/>
 * Function: 配置的控制类型<br/>
 * Date:2021年11月01日 10:34<br/>
 *
 * @author Kai.Wang
 * @version 1.0.0
 * @see
 * @since JDK 8
 */
@RestController
@RequestMapping("/v1/backendconfig")
public class BackendConfigController extends BaseController {

    @Autowired
    private IJslBackendConfigService iJslBackendConfigService;


    /**
     * @return com.fxp.project.jiuselu.web.domain.CommonResult
     * @Description 获取公司的一些配置信息
     * @Date 20:40 2022/1/2
     * @Param []
     * @Author M_
     **/
    @PostMapping("/getCommpanyMessage")
    @CrossOrigin
    public CommonResult getCommpanyMessage() {
        return CommonResult.success(iJslBackendConfigService.getCommpanyMessage());
    }
}
